<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2007-9-22
  Time: 7:22:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglib.jsp" %>
<head>
    <meta content="article" name="menu">
    <title>${actionBean.article.title}</title>
</head>
<body>
<div id="innerContent">
    <div class="announce" style="display: none">
        <div class="announce-content">

        </div>
    </div>
    <div class="article-top" style="display: none">
        <div class="pages">

        </div>
    </div>
    <div class="article-top">
        <div class="prev-article"><a href="read.php/2.htm" title="上一篇 测试一下"><img
                src="/css/default/images/toolbar_previous.gif" alt='' border='0'/>测试一下</a></div>
        <div class="next-article"><a href="read.php/2.htm" title="下一篇 测试一下"><img
                src="/css/default/images/toolbar_next.gif" alt='' border='0'/>测试一下</a></div>
    </div>
    <div class="textbox">
        <div class="textbox-title">
            <h4>
                ${actionBean.article.title}
            </h4>

            <div class="textbox-label">
                <fmt:formatDate value="${actionBean.article.createTime}" pattern="${siteConfig.datePattern}"/>
            </div>
        </div>
        <div class="textbox-content" id="zoomtext">
            ${actionBean.article.content}<br/>

            <div class="tags" style="display: block">Tags: <a href="tag.php?tag=mybrand" title="Tags:  mybrand"
                                                              rel="tag">mybrand</a></div>
        </div>
        <div class="textbox-bottom">
            by <a href="view.php?go=user_1" target="_blank">admin</a> | 分类: <a href="index.php?go=category_0"
                                                                               title="查看分类： 默认分类">默认分类</a> | <a
                href="read.php/1.htm#reply" title="发表您的评论">评论(${actionBean.article.commentSize})</a>
            | <a href="read.php/1.htm">阅读(${actionBean.article.readSize})</a>

            <div id="tb1" style="display: none;" class="textbox-tburl"><strong>引用地址：</strong> <span
                    id='tbb1'></span><br/><strong>注意：</strong> 该地址仅在今日23:59:59之前有效
            </div>

        </div>
    </div>
    <div id="commentWrapper" class="comment-wrapper">
        <a name="topreply"></a>

        <div id="blogcomment3">
            <c:forEach items="${actionBean.comments.elements}" var="comment">
                <div class="commentbox">
                    <div class="commentbox-title">
                            ${comment.creator.name}
                        <div class="commentbox-label">
                            <fmt:formatDate value="${comment.createTime}" pattern="${siteConfig.datePattern}"/>
                        </div>
                    </div>
                    <div class="commentbox-content">
                            ${comment.content}
                    </div>
                </div>
            </c:forEach>
        </div>
    </div>
    <div class="comment-pages">
        <i:page curPage="${actionBean.comments.pageNumber}" totalCount="${actionBean.comments.totalElements}" viewCount="${actionBean.comments.pageSize}" useDefaultStyle="false"/>
    </div>
    <a name="reply"></a>
	<div id="commentForm">
		<s:form name="visitorinput" id="visitorinput" method="post" action="/article.do">
		<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="formbox-comment">
			<tr>
				<td class="formbox-comment-title">发表评论</td>
			</tr>
			<tr>

				<td class="formbox-comment-content" valign="top">
					    <s:textarea name="comment.content" id="v_content" cols="64" rows="10" /><br/>
					<div style="padding-top:10px">
					    <s:hidden name="comment.article.id" id="id" value="${param.id}" />
						<input type="submit" name="commentArticle" id="btnSubmit" value="提交" class="button"/>&nbsp;
						<input name="reset" id="reset" type="reset" value="重置" class="button" />
					</div>
				</td>
			</tr>
		</table>
		</s:form>
	</div>
</div>
</body>
